<?php session_start();?>
<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"></meta>
</head>
<body>

</body>
<?php 
include_once ("configs/config.php");     //配置参数
include_once ("common/mysql.class.php");   //MySQL操作类
include_once ("common/action.class.php");   //MySQL操作类



$db = new action($mydbhost, $mydbuser, $mydbpw, $mydbname, "temp_conn", $mydbcharset, $mydbtag); //实例化数据库类

date_default_timezone_set("Asia/Chongqing"); //设定用于所有日期时间函数为重庆时区
$throw_times = -1;
$pick_times = -1;
$credits = -1;

$db->get_user_data(0,$throw_times, $pick_times, $credits);
print_r( $throw_times);
print_r( $pick_times);
print_r( $credits);

//$ret = $db ->throw_one_bottle(0,1243); // test 查看数据库


?>
</html>
